home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Dec 1998
- //
- //
- //
- // Procedure Name:
- // ModCreateMenu
- //
- // Description:
- // Create the MODELLING->Create menu
- //
- // Input Arguments:
- // parent to parent the menu to.
- //
- // Return Value:
- // None.
- //
-
- proc ModNurbsPrimitiveMenuItem( string $parent )
- //
- // Proc : To create NURBS primitives.
- //
- {
- setParent -menu $parent;
-
- if (`isTrue "NurbsExists"`) {
- menuItem -label "NURBS Primitives" -subMenu true -tearOff true
- -allowOptionBoxes true;
-
- if (`isTrue "SurfaceUIExists"`) {
-
- menuItem -label "Sphere"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSSphere"))
- -image "sphere.xpm"
- -command ("CreateNURBSSphere")
- -dragMenuCommand ("performNurbsSphere(2)")
- -dragDoubleClickCommand ("CreateNURBSSphereOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSSphereOptions"))
- -image "sphere.xpm"
- -command ("CreateNURBSSphereOptions");
-
- menuItem -label "Cube"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSCube"))
- -image "cube.xpm"
- -command ("CreateNURBSCube")
- -dragMenuCommand ("performNurbsCube(2)")
- -dragDoubleClickCommand ("CreateNURBSCubeOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSCubeOptions"))
- -image "cube.xpm"
- -command ("CreateNURBSCubeOptions");
-
- menuItem -label "Cylinder"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSCylinder"))
- -image "cylinder.xpm"
- -command ("CreateNURBSCylinder")
- -dragMenuCommand ("performNurbsCylinder(2)")
- -dragDoubleClickCommand ("CreateNURBSCylinderOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSCylinderOptions"))
- -image "cylinder.xpm"
- -command ("CreateNURBSCylinderOptions");
-
- menuItem -label "Cone"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSCone"))
- -image "cone.xpm"
- -command ("CreateNURBSCone")
- -dragMenuCommand ("performNurbsCone(2)")
- -dragDoubleClickCommand ("CreateNURBSConeOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSConeOptions"))
- -image "cone.xpm"
- -command ("CreateNURBSConeOptions");
-
- menuItem -label "Plane"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSPlane"))
- -image "plane.xpm"
- -command ("CreateNURBSPlane")
- -dragMenuCommand ("performNurbsPlane(2)")
- -dragDoubleClickCommand ("CreateNURBSPlaneOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSPlaneOptions"))
- -image "plane.xpm"
- -command ("CreateNURBSPlaneOptions");
-
- menuItem -label "Torus"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSTorus"))
- -image "torus.xpm"
- -command ("CreateNURBSTorus")
- -dragMenuCommand ("performNurbsTorus(2)")
- -dragDoubleClickCommand ("CreateNURBSTorusOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSTorusOptions"))
- -image "torus.xpm"
- -command ("CreateNURBSTorusOptions");
- }
-
- menuItem -label "Circle"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSCircle"))
- -image "circle.xpm"
- -command ("CreateNURBSCircle")
- -dragMenuCommand ("performNurbsCircle(2)")
- -dragDoubleClickCommand ("CreateNURBSCircleOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSCircleOptions"))
- -image "circle.xpm"
- -command ("CreateNURBSCircleOptions");
-
- menuItem -label "Square"
- -annotation (getRunTimeCommandAnnotation("CreateNURBSSquare"))
- -image "square.xpm"
- -command ("CreateNURBSSquare")
- -dragMenuCommand ("performNurbsSquare(2)")
- -dragDoubleClickCommand ("CreateNURBSSquareOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateNURBSSquareOptions"))
- -image "square.xpm"
- -command ("CreateNURBSSquareOptions");
-
- setParent -menu .. ;
- }
- setParent -menu .. ;
- }
-
-
- proc ModPolyPrimitiveMenuItem( string $parent )
- //
- // Description :
- // To create Poly primitives menu.
- //
- {
- setParent -menu $parent;
- if( `isTrue "PolygonsExists"` ) {
-
- menuItem -label "Polygon Primitives" -subMenu true -tearOff true
- -allowOptionBoxes true polyPrimitivesItem;
-
- menuItem -label "Sphere"
- -annotation (getRunTimeCommandAnnotation("CreatePolygonSphere"))
- -image "polySphere.xpm"
- -command ("CreatePolygonSphere")
- -dragMenuCommand ("performPolyPrimitive Sphere 2")
- -dragDoubleClickCommand ("CreatePolygonSphereOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePolygonSphereOptions"))
- -image "polySphere.xpm"
- -command ("CreatePolygonSphereOptions");
-
- menuItem -label "Cube"
- -annotation (getRunTimeCommandAnnotation("CreatePolygonCube"))
- -image "polyCube.xpm"
- -command ("CreatePolygonCube")
- -dragMenuCommand ("performPolyPrimitive Cube 2")
- -dragDoubleClickCommand ("CreatePolygonCubeOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePolygonCubeOptions"))
- -image "polyCube.xpm"
- -command ("CreatePolygonCubeOptions");
-
- menuItem -label "Cylinder"
- -annotation (getRunTimeCommandAnnotation("CreatePolygonCylinder"))
- -image "polyCylinder.xpm"
- -command ("CreatePolygonCylinder")
- -dragMenuCommand ("performPolyPrimitive Cylinder 2")
- -dragDoubleClickCommand ("CreatePolygonCylinderOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePolygonCylinderOptions"))
- -image "polyCylinder.xpm"
- -command ("CreatePolygonCylinderOptions");
-
- menuItem -label "Cone"
- -annotation (getRunTimeCommandAnnotation("CreatePolygonCone"))
- -image "polyCone.xpm"
- -command ("CreatePolygonCone")
- -dragMenuCommand ("performPolyPrimitive Cone 2")
- -dragDoubleClickCommand ("CreatePolygonConeOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePolygonConeOptions"))
- -image "polyCone.xpm"
- -command ("CreatePolygonConeOptions");
-
- menuItem -label "Plane"
- -annotation (getRunTimeCommandAnnotation("CreatePolygonPlane"))
- -image "polyMesh.xpm"
- -command ("CreatePolygonPlane")
- -dragMenuCommand ("performPolyPrimitive Plane 2")
- -dragDoubleClickCommand ("CreatePolygonPlaneOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePolygonPlaneOptions"))
- -image "polyMesh.xpm"
- -command ("CreatePolygonPlaneOptions");
-
- menuItem -label "Torus"
- -annotation (getRunTimeCommandAnnotation("CreatePolygonTorus"))
- -image "polyTorus.xpm"
- -command ("CreatePolygonTorus")
- -dragMenuCommand ("performPolyPrimitive Torus 2")
- -dragDoubleClickCommand ("CreatePolygonTorusOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePolygonTorusOptions"))
- -image "polyTorus.xpm"
- -command ("CreatePolygonTorusOptions");
-
- setParent -menu ..;
- }
- setParent -menu .. ;
- }
-
-
-
- proc ModSubdPrimitiveMenuItem( string $parent )
- //
- // Description :
- // To create Subd primitives menu.
- // Added by CM
- //
- {
- setParent -menu $parent;
- if( `isTrue "SubdivUIExists"` ) {
-
- menuItem -label "Subdiv Primitives" -subMenu true -tearOff true
- -allowOptionBoxes true subdPrimitivesItem;
-
- menuItem -label "Sphere"
- -annotation (getRunTimeCommandAnnotation("CreateSubdivSphere"))
- -image "subdivSphere.xpm"
- -command ("CreateSubdivSphere");
-
- menuItem -label "Cube"
- -annotation (getRunTimeCommandAnnotation("CreateSubdivCube"))
- -image "subdivCube.xpm"
- -command ("CreateSubdivCube");
-
- menuItem -label "Cylinder"
- -annotation (getRunTimeCommandAnnotation("CreateSubdivCylinder"))
- -image "subdivCylinder.xpm"
- -command ("CreateSubdivCylinder");
-
- menuItem -label "Cone"
- -annotation (getRunTimeCommandAnnotation("CreateSubdivCone"))
- -image "subdivCone.xpm"
- -command ("CreateSubdivCone");
-
- menuItem -label "Plane"
- -annotation (getRunTimeCommandAnnotation("CreateSubdivPlane"))
- -image "subdivPlane.xpm"
- -command ("CreateSubdivPlane");
-
- menuItem -label "Torus"
- -annotation (getRunTimeCommandAnnotation("CreateSubdivTorus"))
- -image "subdivTorus.xpm"
- -command ("CreateSubdivTorus");
-
- setParent -menu ..;
- }
- setParent -menu .. ;
- }
-
-
-
- proc ModVolumePrimitiveMenuItem( string $parent )
- //
- // Description :
- // To create Volume primitives menu.
- //
- {
- setParent -menu $parent;
- if( `isTrue "PolygonsExists"` ) {
-
- menuItem -label "Volume Primitives" -subMenu true -tearOff true
- -allowOptionBoxes true volumePrimitivesItem;
-
- menuItem -label "Sphere"
- -annotation (getRunTimeCommandAnnotation("CreateVolumeSphere"))
- -image "volumeSphere.xpm"
- -command ("CreateVolumeSphere");
-
- menuItem -label "Cube"
- -annotation (getRunTimeCommandAnnotation("CreateVolumeCube"))
- -image "volumeCube.xpm"
- -command ("CreateVolumeCube");
-
- menuItem -label "Cone"
- -annotation (getRunTimeCommandAnnotation("CreateVolumeCone"))
- -image "volumeCone.xpm"
- -command ("CreateVolumeCone");
-
- setParent -menu ..;
- }
- setParent -menu .. ;
- }
-
-
-
-
- proc ModLightsMenuItem( string $parent )
- //
- // Description :
- // To create Lights menu.
- // Note : Divider added at the end by proc.
- //
- {
- setParent -menu $parent;
-
- menuItem -label "Lights" -sm true -tearOff true
- -allowOptionBoxes true LightsItem;
-
- menuItem -label "Ambient Light"
- -annotation (getRunTimeCommandAnnotation("CreateAmbientLight"))
- -image "ambientlight.xpm"
- -command ("CreateAmbientLight")
- -dragMenuCommand ("performAmbientLight 2")
- -dragDoubleClickCommand ("CreateAmbientLightOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateAmbientLightOptions"))
- -image "ambientlight.xpm"
- -command ("CreateAmbientLightOptions");
-
- menuItem -label "Directional Light"
- -annotation (getRunTimeCommandAnnotation("CreateDirectionalLight"))
- -image "directionallight.xpm"
- -command ("CreateDirectionalLight")
- -dragMenuCommand ("performDirectionalLight 2")
- -dragDoubleClickCommand ("CreateDirectionalLightOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateDirectionalLightOptions"))
- -image "directionallight.xpm"
- -command ("CreateDirectionalLightOptions");
-
- menuItem -label "Point Light"
- -annotation (getRunTimeCommandAnnotation("CreatePointLight"))
- -image "pointlight.xpm"
- -command ("CreatePointLight")
- -dragMenuCommand ("performPointLight 2")
- -dragDoubleClickCommand ("CreatePointLightOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePointLightOptions"))
- -image "pointlight.xpm"
- -command ("CreatePointLightOptions");
-
- menuItem -label "Spot Light"
- -annotation (getRunTimeCommandAnnotation("CreateSpotLight"))
- -image "spotlight.xpm"
- -command ("CreateSpotLight")
- -dragMenuCommand ("performSpotLight 2")
- -dragDoubleClickCommand ("CreateSpotLightOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateSpotLightOptions"))
- -image "spotlight.xpm"
- -command ("CreateSpotLightOptions");
-
- menuItem -label "Area Light"
- -annotation (getRunTimeCommandAnnotation("CreateAreaLight"))
- -image "arealight.xpm"
- -command ("CreateAreaLight")
- -dragMenuCommand ("performAreaLight(2)")
- -dragDoubleClickCommand ("CreateAreaLightOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateAreaLightOptions"))
- -image "arealight.xpm"
- -command ("CreateAreaLightOptions");
-
- menuItem -label "Volume Light"
- -annotation (getRunTimeCommandAnnotation("CreateVolumeLight"))
- -image "volumelight.xpm"
- -command ("CreateVolumeLight")
- -dragMenuCommand ("performVolumeLight 2")
- -dragDoubleClickCommand ("CreateVolumeLightOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateVolumeLightOptions"))
- -image "volumelight.xpm"
- -command ("CreateVolumeLightOptions");
-
- setParent -menu ..;
-
- setParent -menu .. ;
- }
-
-
- proc ModCurveToolsMenuItem( string $parent )
- //
- // Description :
- // To create Curve Tools menu. Arc tools included.
- //
- {
-
- setParent -menu $parent ;
-
- if (`isTrue "NurbsExists"`) {
-
- menuItem -label "CV Curve Tool"
- -annotation (getRunTimeCommandAnnotation("CVCurveTool"))
- -image "curveCV.xpm"
- -command ("CVCurveTool")
- -dragDoubleClickCommand ("CVCurveToolOptions");
-
- menuItem -optionBox true -image "curveCV.xpm"
- -annotation (getRunTimeCommandAnnotation("CVCurveToolOptions"))
- -command ("CVCurveToolOptions");
-
- menuItem -label "EP Curve Tool"
- -annotation (getRunTimeCommandAnnotation("EPCurveTool"))
- -image "curveEP.xpm"
- -command ("EPCurveTool")
- -dragDoubleClickCommand ("EPCurveToolOptions");
-
- menuItem -optionBox true -image "curveEP.xpm"
- -annotation (getRunTimeCommandAnnotation("EPCurveToolOptions"))
- -command ("EPCurveToolOptions");
-
- menuItem -label "Pencil Curve Tool"
- -annotation (getRunTimeCommandAnnotation("PencilCurveTool"))
- -image "pencil.xpm"
- -command ("PencilCurveTool")
- -dragDoubleClickCommand ("PencilCurveToolOptions");
-
- menuItem -optionBox true -image "pencil.xpm"
- -annotation (getRunTimeCommandAnnotation("PencilCurveToolOptions"))
- -command ("PencilCurveToolOptions");
-
- menuItem -label "Arc Tools" -subMenu true -tearOff true
- -allowOptionBoxes true;
-
- menuItem -label "Three Point Circular Arc"
- -annotation (getRunTimeCommandAnnotation("ThreePointArcTool"))
- -image "threePointArc.xpm"
- -command ("ThreePointArcTool")
- -dragDoubleClickCommand ("ThreePointArcToolOptions");
-
- menuItem -optionBox true -image "threePointArc.xpm"
- -annotation (getRunTimeCommandAnnotation("ThreePointArcToolOptions"))
- -command ("ThreePointArcToolOptions");
-
- menuItem -label "Two Point Circular Arc"
- -annotation (getRunTimeCommandAnnotation("TwoPointArcTool"))
- -image "twoPointArc.xpm"
- -command ("TwoPointArcTool")
- -dragDoubleClickCommand ("TwoPointArcToolOptions");
-
- menuItem -optionBox true -image "twoPointArc.xpm"
- -annotation (getRunTimeCommandAnnotation("TwoPointArcToolOptions"))
- -command ("TwoPointArcToolOptions");
-
- setParent -menu ..;
-
- menuItem -divider true;
-
- menuItem -label "Measure Tools" -subMenu true -tearOff true measureItem;
-
- menuItem -label "Distance Tool"
- -annotation (getRunTimeCommandAnnotation("DistanceTool"))
- -image "distanceDim.xpm"
- -command ("DistanceTool");
-
- menuItem -label "Parameter Tool"
- -annotation (getRunTimeCommandAnnotation("ParameterTool"))
- -image "paramDim.xpm"
- -command ("ParameterTool");
-
- menuItem -label "Arc Length Tool"
- -annotation (getRunTimeCommandAnnotation("ArcLengthTool"))
- -image "arcLengthDim.xpm"
- -command ("ArcLengthTool");
-
- setParent -menu ..;
-
- // add divider.
- //
- menuItem -divider true ;
- }
- setParent -menu .. ;
- }
-
- proc ModTextMenuItem( string $parent )
- //
- // Description : To create Text menu.
- //
- {
- setParent -menu $parent ;
- if (`isTrue "NurbsExists"`) {
-
- menuItem
- -label "Text"
- -annotation (getRunTimeCommandAnnotation("CreateText"))
- -image "text.xpm"
- -command ("CreateText")
- -dragMenuCommand ("performtextCurves 2")
- -dragDoubleClickCommand ("CreateTextOptions");
-
- menuItem -optionBox true -image "text.xpm"
- -annotation (getRunTimeCommandAnnotation("CreateTextOptions"))
- -command ("CreateTextOptions");
-
- menuItem -divider true;
- }
- setParent -menu ..;
- }
-
- proc ModLocatorAndConstrPlaneMenuItem( string $parent )
- //
- // Description :
- // To create locator and construction plane
- //
- {
- setParent -menu $parent ;
-
- menuItem -label "Construction Plane"
- -annotation (getRunTimeCommandAnnotation("CreateConstructionPlane"))
- -image "sketchPlane.xpm"
- -command ("CreateConstructionPlane")
- -dragMenuCommand ("performCreateConstructionPlane 2")
- -dragDoubleClickCommand ("CreateConstructionPlaneOptions");
-
- menuItem -optionBox true -image "sketchPlane.xpm"
- -annotation (getRunTimeCommandAnnotation("CreateConstructionPlaneOptions"))
- -command ("CreateConstructionPlaneOptions");
-
- menuItem -label "Locator"
- -annotation (getRunTimeCommandAnnotation("CreateLocator"))
- -image "locator.xpm"
- -command ("CreateLocator");
-
- menuItem -label "Annotation..."
- -annotation (getRunTimeCommandAnnotation("CreateAnnotateNode"))
- -image "annotation.xpm"
- -command ("CreateAnnotateNode");
-
- menuItem -divider true;
-
- setParent -menu ..;
- }
-
-
- proc ModSetsMenuItem( string $parent )
- //
- // Description :
- // To create sets and other grouping things
- //
- {
- setParent -menu $parent ;
-
- // Empty Group
- //
- menuItem -label "Empty Group"
- -annotation (getRunTimeCommandAnnotation("CreateEmptyGroup"))
- -echoCommand true
- -command ("CreateEmptyGroup");
-
- menuItem -label "Sets" -subMenu true -tearOff true -allowOptionBoxes true;
-
- // Sets
- //
- menuItem -label "Set"
- -annotation (getRunTimeCommandAnnotation("CreateSet"))
- -command ("CreateSet")
- -dragDoubleClickCommand ("CreateSetOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreateSetOptions"))
- -command ("CreateSetOptions");
-
- menuItem -label "Partition"
- -annotation (getRunTimeCommandAnnotation("CreatePartition"))
- -command ("CreatePartition")
- -dragDoubleClickCommand ("CreatePartitionOptions");
-
- menuItem -optionBox true
- -annotation (getRunTimeCommandAnnotation("CreatePartitionOptions"))
- -command ("CreatePartitionOptions");
-
- menuItem -label "Quick Select Set..."
- -annotation (getRunTimeCommandAnnotation("CreateQuickSelectSet"))
- -command ("CreateQuickSelectSet");
-
- setParent -menu ..;
- }
-
- proc ModCameraMenuItem( string $parent )
- //
- // Description ; To create a camera.
- {
- setParent -menu $parent ;
-
- menuItem -label "Cameras" -subMenu true -tearOff true -allowOptionBoxes true;
-
- menuItem -label "Camera"
- -annotation (getRunTimeCommandAnnotation("CreateCameraOnly"))
- -image "view.xpm"
- -command ("CreateCameraOnly")
- -dragMenuCommand ("performCameraOnly 2")
- -dragDoubleClickCommand ("CreateCameraOnlyOptions");
-
- menuItem -optionBox true -image "view.xpm"
- -annotation (getRunTimeCommandAnnotation("CreateCameraOnlyOptions"))
- -command ("CreateCameraOnlyOptions");
-
- menuItem -label "Camera and Aim"
- -annotation (getRunTimeCommandAnnotation("CreateCameraAim"))
- -image "view.xpm"
- -command ("CreateCameraAim")
- -dragMenuCommand ("performCameraAim 2")
- -dragDoubleClickCommand ("CreateCameraAimOptions");
-
- menuItem -optionBox true -image "view.xpm"
- -annotation (getRunTimeCommandAnnotation("CreateCameraAimOptions"))
- -command ("CreateCameraAimOptions");
-
- menuItem -label "Camera, Aim, and Up"
- -annotation (getRunTimeCommandAnnotation("CreateCameraAimUp"))
- -image "view.xpm"
- -command ("CreateCameraAimUp")
- -dragMenuCommand ("performCamera 2")
- -dragDoubleClickCommand ("CreateCameraAimUpOptions");
-
- menuItem -optionBox true -image "view.xpm"
- -annotation (getRunTimeCommandAnnotation("CreateCameraAimUpOptions"))
- -command ("CreateCameraAimUpOptions");
-
- setParent -menu ..;
-
- // add divider.
- //
- menuItem -divider true ;
-
- setParent -menu ..;
- }
-
- global proc ModCreateMenu( string $parent )
- {
- if( `menu -q -ni $parent` != 0 ) {
- //
- // Menu is built already - just return
- //
- return;
- }
- ModNurbsPrimitiveMenuItem( $parent ) ;
- ModPolyPrimitiveMenuItem( $parent ) ;
- ModSubdPrimitiveMenuItem( $parent ) ;
- ModVolumePrimitiveMenuItem( $parent ) ;
- ModLightsMenuItem( $parent ) ;
- ModCameraMenuItem( $parent ) ;
- ModCurveToolsMenuItem( $parent ) ;
- ModTextMenuItem( $parent ) ;
- ModLocatorAndConstrPlaneMenuItem( $parent ) ;
- ModSetsMenuItem( $parent ) ;
- }
-